/*
 * Proxy_Server.h
 *
 *  Created on: 2009-3-27
 *      Author: W. Wen Peng
 */

#ifndef PROXY_SERVER_H_
#define PROXY_SERVER_H_
#include "SocketPlus/Listener.h"

class Proxy_Server:public Listener {
private:
	SockAddr	m_serv_addr;
public:
	Proxy_Server();
	void SetServAddr(const char * servaddr){
		m_serv_addr.sin_addr.s_addr = inet_addr(servaddr);
	}
	void SetServPort(uint16_t dport){
		m_serv_addr.sin_port = htons(dport);
	}
	int OnAccept(Epoller &sender,EpollEventArg &e);

	virtual ~Proxy_Server();
};

#endif /* PROXY_SERVER_H_ */
